package parts3.lesson25;

import java.util.function.Function;
import java.util.function.IntFunction;

public class Demo {


    public static void main(String[] args) {
        Function<Integer, String> str = String::valueOf;

        System.out.println(str.apply(1000).getClass());
        System.out.println(str.apply(1000));

        //对int型扩展的接口
        IntFunction<String> str2 = String::valueOf;
        System.out.println(str2.apply(1000).getClass());
        System.out.println(str2.apply(1000));
    }

}
